package aSimple;

import com.playhouse.Playactor;
import com.playhouse.Regisseur;
import com.util.logger.*;

public class Tester extends Playactor {
	public Tester(Regisseur regisseur) {
		super(regisseur);
	}

	@Override
	protected boolean login() {
		return true;
	}

	@Override
	protected boolean logout() {
		return true;
	}

	public void setData(String search) {
		init();
		String url = "http://www.google.com.hk";
		try {
			selenium.open(url);
			selenium.type("q", search);
			selenium.click("btnG");
			Thread.sleep(3000);
		} catch (Exception e) {
			DebugLogger.log(e);
		}
	}
}
